import Layout from '@/layout/index.vue'

const purchaseRouter = [{
  path: '/purchase',
  component: Layout,
  isShow: true,
  redirect: 'noRedirect',
  name: 'purchase',
  alwaysShow: true,
  meta: { title: '采购管理', icon: 'ShoppingCart', },
  children: [
    {
      path: 'requirement',
      component: () => import('@/views/purchase/requirement/requirement.vue'),
      name: 'requirement',
      meta: { title: '物料清单', permissions: ['wms-order:requirement:'], icon: 'document' }
    },
    // {
    //   path: 'orderChange',
    //   component: () => import('@/views/purchase/orderChange/orderChange.vue'),
    //   name: 'orderChange',
    //   meta: { title: '物料变更记录', permissions: ['wms-order:orderChange:'], icon: 'document' }
    // },
    {
      path: 'request',
      component: () => import('@/views/purchase/request/request.vue'),
      name: 'request',
      meta: { title: '请购单据', permissions: ['wms-order:request:'], icon: 'document' }
    },
    {
      path: 'purchase',
      component: () => import('@/views/purchase/purchase/purchase.vue'),
      name: 'purchase',
      meta: { title: '采购单据', permissions: ['wms-order:purchase:'], icon: 'document' }
    },
    {
      path: 'supplier',
      component: () => import('@/views/purchase/supplier/supplier.vue'),
      name: 'supplier',
      meta: { title: '供应商管理', permissions: ['wms:supplier:'], icon: 'document' }
    }
  ]
}]

export default purchaseRouter
